//
//  UserModel.h
//  JiFengDaRen
//
//  Created by guest on 16/1/27.
//  Copyright © 2016年 SH_iOS. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UserModel : NSObject
@property(nonatomic,assign)float credits;//联商红包
@property(nonatomic,assign)float  pay_balance;//消费余额
@property(nonatomic,assign)float balance;//我的粮仓
@property(nonatomic,assign)int _id;//用户ID
@property(nonatomic,copy)NSString *phone;//用户手机号
@property(nonatomic,assign)float wd;//纬度
@property(nonatomic,assign)float jd;//经度
@property(nonatomic,copy)NSString *field ;
@property(nonatomic,copy)NSString *avatar;//用户默认头像
@property(nonatomic,copy)NSString *username;//用户名
@property(nonatomic,copy)NSString *nickname;//昵称
@property(nonatomic,copy)NSString *email;//邮箱
@property(nonatomic,copy)NSString *precision;
@property(nonatomic,strong)UIImage *image;
@property(nonatomic,assign)int level;//会员等级
@property(nonatomic,assign)int is_hmuser;//是否开通微信支付
@property(nonatomic,strong)NSNumber* is_lucky_user;//is_lucky_user
@property(nonatomic,copy)NSString *	user_spread_link;//我的邀请二维码链接
@property(nonatomic,assign)BOOL  is_agent;
@property(nonatomic,assign)int  inviter_count;
@property(nonatomic,assign)BOOL has_pay_password;
@property(nonatomic,copy)NSString *member_id;//阿里百川账号
@property(nonatomic,assign)BOOL  has_certification;

@property (nonatomic, copy) NSString * user_grade;
//
+ (instancetype)shareManager;
- (void)setMyUserModel:(UserModel *)myUserModel;
/*
 
 {
 "_id" = 11163;
 avatar = "";
 balance = 0;
 "card_coupons_balance" = 0;
 credits = 0;
 email = "";
 field = None;
 "has_pay_password" = 0;
 "inviter_count" = 0;
 "is_agent" = 0;
 "is_lucky_user" = 0;
 jd = 0;
 level = 1;
 "member_id" = 1481343552;
 name = "\U533f\U540d";
 nickname = "\U8bf7\U8bbe\U7f6e\U6635\U79f0";
 "pay_balance" = 0;
 phone = 13818126961;
 precision = 0;
 "user_spread_link" = "http://yhzj.ebenbank.com:8090/moportal/register?uid=11163";
 username = 13818126961;
 wd = 0;
 }
 */
@end
